package com.diamond.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TUserFunction entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_user_function", catalog = "diamond")
public class TUserFunction implements java.io.Serializable {

	// Fields

	private Long userperId;
	private Long userId;
	private String functionCode;
	private String activStatus="Y";
	// Constructors

	/** default constructor */
	public TUserFunction() {
	}

	/** full constructor */
	public TUserFunction(Long userId, String functionCode, String activStatus) {
		this.userId = userId;
		this.functionCode = functionCode;
		this.activStatus = activStatus;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "userper_id", unique = true, nullable = false)
	public Long getUserperId() {
		return this.userperId;
	}

	public void setUserperId(Long userperId) {
		this.userperId = userperId;
	}

	@Column(name = "user_id")
	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	@Column(name = "function_code", length = 100)
	public String getFunctionCode() {
		return this.functionCode;
	}

	public void setFunctionCode(String functionCode) {
		this.functionCode = functionCode;
	}

	@Column(name = "activ_status", length = 10)
	public String getActivStatus() {
		return this.activStatus;
	}

	public void setActivStatus(String activStatus) {
		this.activStatus = activStatus;
	}

}